package com.pdg.mcplugin.common.baseclasses;

import java.util.logging.Logger;

import org.bukkit.conversations.MessagePrompt;
import com.pdg.mcplugin.common.interfaces.PluginClient;

public abstract class MessagePromptBase<E extends PluginBase> extends MessagePrompt implements PluginClient<E> {

	private E plugin;

	public MessagePromptBase(E thePlugin){
		setPlugin(thePlugin);
	}
	
	private void setPlugin(E thePlugin) {
		plugin = thePlugin;
	}

	@Override
	public E getPlugin() {
		return plugin;
	}

	@Override
	public Logger getLogger() {
		return getPlugin().getLogger();
	}
}
